import request from '@/utils/request';

export function getPlatform(query) {
	return request({
		url: '/mall/platform/getInfo',
		method: 'post',
		data: query,
	});
}
export function editPlatform(query) {
	return request({
		url: '/mall/platform/edit',
		method: 'post',
		data: query,
	});
}

export function getBonusPools(query) {
	return request({
		url: '/api/pc/ptGoods/getBonusPools',
		method: 'get',
		params: query,
	});
}

export function getAllBonusUser(query) {
	return request({
		url: '/api/pc/ptGoods/getAllBonusUser',
		method: 'get',
		params: query,
	});
}

export function getEarningsRecord(query) {
	return request({
		url: '/api/pc/ptGoods/getEarningsRecord',
		method: 'get',
		params: query,
	});
}
